using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace PrjSerails.UI
{
    public partial class UserMessageBox : Form
    {
        private string msg;
        private bool result;


        public UserMessageBox(string s)
        {
            msg = s;
            InitializeComponent();
        }


        public bool Result
        {
            get { return result; }
            set { result = value; }
        }

        private void UserMessageBox_Load(object sender, EventArgs e)
        {
            this.label1.Text = msg;
            this.label1.Left = (this.Width - this.label1.Width) / 2;
        }

        private void button1_Click(object sender, EventArgs e)
        {
            this.result = true;
            this.Dispose();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            this.result = false;
            this.Dispose();
        }

    }
}